package com.fit.dao.homework;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.homework.Homework;
import com.fit.entities.user.User;

public interface HomeworkDAO {

	@CommitAfter
	public boolean save(Homework newHomework);

	@CommitAfter
	public boolean delete(Homework homework);

	@CommitAfter
	public boolean update(Homework homework);

	public List<Homework> findAll();

	public Homework findByTask(String task);

	public Homework findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
